// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueI18n from 'vue-i18n'
import App from './App'
import router from './router'
import axios from './http'

import store from './store/index.js'

import ElementUI from 'element-ui'
//import 'element-ui/lib/theme-chalk/index.css'
import 'element-theme-default/lib/index.css'

import locale from 'element-ui/lib/locale'

import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import VueJsonp from 'vue-jsonp'

//locale.use(zhLocale)
Vue.config.debug = true;

Vue.prototype.store = store;
Vue.prototype.axios = axios;

Vue.use(VueJsonp)
Vue.use(VueI18n)
Vue.use(ElementUI)

Vue.config.lang = 'zh-cn'

//Vue.locale('en', enLocale)
//Vue.locale('zh-cn', zhLocale)

//Vue.locale('en', ElementUI.lang.en)
//Vue.locale('zh-cn', ElementUI.lang.zhCN)

Vue.config.productionTip = false
Vue.use(ElementUI)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  axios,
  router,
  store,
  template: '<App/>',
  components: { App }
})
